add utility functions for deriving lock names