Add helpers for adding bit operators to enums.
Add helpers for optional locks.
Add operator -> to AlreadyRefed.