Add :all option for method locking.