A collection of function locking methods.