`lock` accepts seconds in float as input. This should be converted to seconds and microseconds before passing to pendulum