getAndLock for node library?

In previous versions of the node library, getAndLock() was implemented… why was it removed?

I believe the function has been renamed to ‘lock’.