Make the lock acquisition a decorator