Detection of phase locking from non-stationary time series