Implement file locking for Linux and OS/2

Apparently VP already had file locking code for all platforms, so i
didn't need the code from EleBBS!