Add helpers for adding bit operators to enums.
Add helpers for optional locks.
Add operator -> to AlreadyRefed.
Merge branch 'master' into atomic-ref