Converts the given external clock time to the internal time of clock,
using the rate and reference time set with Clock.setCalibration.
This function should be called with the clock's OBJECT_LOCK held and
is mainly used by clock subclasses.
This function is the reverse of Clock.adjustUnlocked.
an external clock time
the internal time of the clock corresponding to external.