raise an error for flock on solaris

I updated the code to raise instead of silently doing nothing under Solaris.
mruby is not meant for basic users anyway so raising an error is, as you said, a lot cleaner.