See SYNOPSIS in Mail::Box::Locker
This locker object is created by the folder to get an exclusive lock on the file which contains the data using the kernel's POSIX facilities. This lock is created on a separate file-handle to the folder file, so not the handle which is reading. Not all platforms support POSIX locking.
See DESCRIPTION in Mail::Box::Locker