Apparatus and method for recovering a reference clock