Open file in buffered mode if the name has prefix "buffered:"

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
Merge pull request #16 from djs55/add-locking

Open file in buffered mode if the name has prefix "buffered:"