0 means lock was acquired. EBUSY means lock was already locked by someone else.