*: lock the in using files; do not purge locked the wal files

actually the error code is EWOULDBLOCK