it seems that lock flags are only validated when UNLOCK is set