Raise warning when put_contents on non-regular file with exclusive lock.

In file_put_contents(), raise warning if attempting to add an exclusive lock on non-regular file.

Passing vfsstream's filePutContentsLockShouldReportError test case.