add convenience functions to set lock bits